package com.nbjtjc.common.bean;


public enum TASKTABLESTATUS {
    UNSTART("未开始",0) ,SAVE("'暂时保存'",1),OVER("'已结束'",2);
    private String name;
    private Integer code;
    public static String getName(Integer code){
        for(TASKTABLESTATUS taskstatus : TASKTABLESTATUS.values()){
            if(taskstatus.getCode().equals(code)){
                return taskstatus.getName();
            }
        }
        return "";
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    TASKTABLESTATUS(String name, Integer code) {
        this.name = name;
        this.code = code;
    }
}
